#pragma once

#include <linux/types.h>

#ifndef __raw_readl
#define __raw_readl __raw_readl
static inline uint32_t __raw_readl(const volatile void *addr)
{
    return *(const volatile uint32_t *)addr;
}
#endif

#ifndef __raw_writel
#define __raw_writel __raw_writel
static inline void __raw_writel(uint32_t value, volatile void *addr)
{
	*(volatile uint32_t *)addr = value;
}
#endif
